#/bin/bash
cur_path=$(cd `dirname $0`;pwd) 
component=$1
#version=`cat ${cur_path}/version.txt`
project=`cat ${cur_path}/project.txt`

#chmod +x ${cur_path}/${project}-docker/${project}-mqtt-nginx/entrypoint.sh
if [ "$1" == "" ]; then
  docker-compose --env-file ${cur_path}/${project}-docker/.env -f ./${project}-docker/docker-compose.yml up -d
else
  docker-compose --env-file ${cur_path}/${project}-docker/.env -f ./${project}-docker/docker-compose.yml up -d ${component}
fi	
